package jym.tan.movielibrary.factory;

import jym.tan.movielibrary.constant.LayoutConstant;
import net.miginfocom.layout.AC;
import net.miginfocom.layout.LC;
import net.miginfocom.swing.MigLayout;

public class LayoutFactory {

	public static synchronized MigLayout getMigFillLayout() {
		return new MigLayout(LayoutConstant.FILL);
	}
	
	public static synchronized MigLayout getMigDefaultLayout() {
		return new MigLayout();
	}
	
	public static synchronized MigLayout getMigToolbarLayout() {
		return new MigLayout(new LC().fillX(), new AC().align(LayoutConstant.LEFT).gap("15").align(LayoutConstant.RIGHT));
	}
}
